package com.ruoyi.shopping.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品类型管理对象 commodity_type
 * 
 * @author fxy
 * @date 2024-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommodityType extends BaseEntity
{
//    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long id;

    /** 规格类别 */
    @Excel(name = "规格类别")
    private String type;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long commodityId;
    /** 商品名称 */
    @TableField(exist = false)
    private Commodity commodity;
    @TableField(exist = false)
    private String commodityName;
    /** 商品图片 */
    @Excel(name = "商品图片")
    private String image;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long inventory;

    /** 0未删除，1删除 */
    private Long del;
}
